project(sisop)

cmake_minimum_required(VERSION 2.8)


add_library(libfuse SHARED IMPORTED)
set_property(TARGET libfuse PROPERTY IMPORTED_LOCATION /usr/lib/libfuse.so)

add_library(libicui18n STATIC IMPORTED)
set_property(TARGET libicui18n PROPERTY IMPORTED_LOCATION /usr/lib/libicui18n.a)

add_library(libicuuc STATIC IMPORTED)
set_property(TARGET libicuuc PROPERTY IMPORTED_LOCATION /usr/lib/libicuuc.a)

add_library(libicudata STATIC IMPORTED)
set_property(TARGET libicudata PROPERTY IMPORTED_LOCATION /usr/lib/libicudata.a)

add_library(libicutu STATIC IMPORTED)
set_property(TARGET libicutu PROPERTY IMPORTED_LOCATION /usr/lib/libicutu.a)


# add_library(utils STATIC IMPORTED)
# set_property(TARGET utils PROPERTY IMPORTED_LOCATION /usr/lib/libunistring.a)

add_executable(sisop main.c utils.c)
add_definitions(${main} -D_FILE_OFFSET_BITS=64)
add_definitions(${main} -licui18n)
add_definitions(${main} -licuuc)
add_definitions(${main} -licudata)
target_link_libraries(sisop libfuse libicui18n libicuuc libicudata libicutu)
# target_link_libraries(sisop licui18n)
# target_link_libraries(sisop libicuuc)
# target_link_libraries(sisop libicudata)

